from django.contrib import admin
from django.urls import path,include
from order import views
from rest_framework.routers import SimpleRouter
urlpatterns=[
    path("AllOrder/",views.AllOrderView.as_view()),
    path("addorder/",views.ADDOrderView.as_view()),
    path("order/",views.OrderView.as_view()),
    path("cakes/",views.CakedOrderView.as_view()),
    path("pay/",views.PayView.as_view())
]

router=SimpleRouter()
router.register('address',views.AddressViewSet)
urlpatterns+=router.urls